SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") >/dev/null && pwd)
echo ${SCRIPTDIR}
cd ${SCRIPTDIR}
pwd

mkdir ./logs

ps -ef | grep  dayu-code-builder-2.3.1.jar | grep -v 'grep' | awk '{print $2}'| xargs kill 

pwd

mv ./logs/nohup-$(date +%Y-%m-%d).out ./logs/nohup-$(date +%Y-%m-%d-%H-%M-%S).out

nohup java -jar -Xms56m  -Xmx512m  -XX:MetaspaceSize=128m  -XX:MaxMetaspaceSize=512m dayu-code-builder-2.3.1.jar | /usr/sbin/cronolog ./logs/nohup-%Y-%m-%d.out >> /dev/null 2>&1 &

$(echo -e "\n")
